package com.gujia.designpattern.template;

public class RefreshBevergeTest {

    public static void main(String[] args) {
        System.out.println("制备咖啡");
        RefreshBeverage b1 = new Coffee();
        b1.prepareBeverageTemplate();

        System.out.println("咖啡好了");

        RefreshBeverage b2 = new Tea();

        b2.prepareBeverageTemplate();

        System.out.println("茶好了");


    }
}
